package ru.jetsoft.reg112.desktop.control;

import javafx.scene.control.TextField;
import ru.jetsoft.reg112.desktop.data.Param;

public class TextControl extends InputParamControl {

    private final TextField textField;

    public TextControl(Param param) {
        super(param);
        textField = new TextField();
        textField.setPromptText(param.getTooltip());
        getHBox().getChildren().add(textField);
    }

    @Override
    public String getValue() {
        return textField.getText();
    }
}
